use serde::{Deserialize, Serialize};

#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct Company {
    pub id: i32,
    pub name: String,
    pub type_id: i32, //公司类型: 1-材料生产单位ie，2-供应商，3-其他服务型，比如印刷名片等
    pub status: i32,  //公司状态: 1-正常，2-停业，3-注销
    pub address: String,
    pub contacts: Vec<String>,
    pub staff_num: i32,   //员工数量
    pub capacity: String, //能生产什么材料
    pub remark: String,

    #[serde(skip)]
    pub created_by: String,
    #[serde(skip)]
    pub modified_by: String,
    #[serde(skip)]
    pub created_at: chrono::NaiveDateTime,
    #[serde(skip)]
    pub modified_at: chrono::NaiveDateTime,
}
